import request from '@/utils/request'

export function personnelFlowlist(query) {
    return request({
      url: '/personnelFlow/list',
      method: 'get',
      params: query
    })
  }

  export function keepOutAlarmlist(query) {
    return request({
      url: '/keepOutAlarm/list',
      method: 'get',
      params: query
    })
  } 

  export function doorFaceList(query) {
    return request({
      url: '/doorFace/list',
      method: 'get',
      params: query
    })
  } 
  //门禁用户列表
  export function faceCardlist(query) {
    return request({
      url: '/faceCard/list',
      method: 'get',
      params: query
    })
  } 
  //门禁添加用户
  export function faceCardadd(data) {
    return request({
      url: '/faceCard/equipmentUSerAdd',
      method: 'post',
      data
    })
  }
  //门禁用户更新
  export function faceCardUpdate(data) {
    return request({
      url: '/faceCard/equipmentUSerUpdate',
      method: 'post',
      data
    })
  }
  //门禁用户删除
  export function faceCarddelete(data) {
    return request({
      url: '/faceCard/delete/'+ data,
      method: 'delete',
    })
  }
  //门禁数据同步
  export function faceCardgetEquipmentUSer(query) {
    return request({
      url: '/faceCard/getEquipmentUSer',
      method: 'get',
      params: query
    })
  } 